package vip.sweet.sys.modular.oshi.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author ASUS
 * @Date 2025/3/28 22:41
 * @Descripition
 */
@Data
@Builder
@Schema(description = "文件相关信息")
public class SysFile implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 盘符路径
     */
    @Schema(description = "盘符路径")
    private String dirName;

    /**
     * 盘符类型
     */
    @Schema(description = "盘符类型")
    private String sysTypeName;

    /**
     * 文件类型
     */
    @Schema(description = "文件类型")
    private String typeName;

    /**
     * 总大小
     */
    @Schema(description = "总大小")
    private String total;

    /**
     * 剩余大小
     */
    @Schema(description = "剩余大小")
    private String free;

    /**
     * 已经使用量
     */
    @Schema(description = "已经使用量")
    private String used;

    /**
     * 资源的使用率
     */
    @Schema(description = "资源的使用率")
    private double usage;
}
